var http = require('http');

/*
* req 这次请求的相关信息
* res 告诉服务器给请求响应内容
* */
var server=http.createServer(function (req,res) {
    res.writeHead(200,{'Content-Type':'text/plain'});
    res.end('Hello NodeJs\n');
});
/*监听端口*/
    server.listen(1337,'127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');

